﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo
{
    [NHibernateEntity(Table = "Currencies", Lazy = true)]
    public class Currency : IDefault
    {
        public Currency() { }

        [PrimaryKey]
        public virtual int Id { get; set; }

        [Property]
        public virtual string Name { get; set; }

        [Property]
        public virtual string Code { get; set; }

        [Property]
        public virtual bool IsDefault { get; set; }

        [Property]
        public virtual double ExchangeRate { get; set; }
    }
}
